// 获取地址列表
export function getAddressListApi(httpData) {
	return uni.$u.http.get("/uni/address/address", {params: httpData})
}

export function saveAddressApi(httpData) {
	return uni.$u.http.post("/uni/address/address", httpData)
}

// 查询地址详情
export function getAddressDetailApi(httpData) {
	return uni.$u.http.get("/uni/address/address/" + httpData)
}

// 查询地址详情
export function putAddressApi(httpData, id) {
	return uni.$u.http.put("/uni/address/address/" + id, httpData)
}

export function putAddressDefaultApi(httpData) {
	return uni.$u.http.put("/uni/address/address/default/" + httpData)
}

export function delAddressApi(httpData) {
	return uni.$u.http.delete("/uni/address/address", httpData)
}

// 获取区域是否开通
export function getRegionApi(httpData) {
	let data = {
		code : httpData,
		level:3,
		disabled:true,
		is_active:true,
		page:1,
		limit:1,
	}
	return uni.$u.http.get("/vadmin/auth/region/check", {params: data})
}